package com.itheima.day07_Collection;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class jiheqiantao {
    public static void main(String[] args) {
        Map<Integer, Student> map = new HashMap<>();
        map.put(1, new Student(1001,"霹雳火", 500));
        map.put(2, new Student(1002,"急先锋", 450));
        map.put(3, new Student(1003,"落落", 457));
        map.put(4, new Student(1004,"狂野猩", 320));
        map.put(5, new Student(2001,"霸天虎", 547));
        map.put(6, new Student(2002,"沸羊羊", 1000));
        map.put(7, new Student(2003,"双面龟", 1500));
        map.put(8, new Student(3001,"黑小虎", 1250));
        map.put(9, new Student(3002,"汤姆", 200));
        map.put(10, new Student(3003,"朵拉", 200));
        ArrayList<Map<Integer, Student>> maps = new ArrayList<>();
        maps.add(map);
        for (Map<Integer, Student> map1 : maps) {
            for (Map.Entry<Integer, Student> entry : map1.entrySet()) {
                System.out.println(entry.getKey()+"--"+entry.getValue());
            }
        }

    }
}
